
//创建路由
import Layout from "@/pages/layout"
import Month from "@/pages/Month"
import News from "@/pages/News"
import Year from "@/pages/Year"
import {createBrowserRouter} from "react-router-dom"
const router =createBrowserRouter([

    {
        path:"/",
        element:<Layout />,
        children:[
            {
                path:"year",
                element:<Year/>
            },{
                "index":true,
                // path:"month",
                element:<Month/>
            }
        ]
    },
    {
        path:"/news",
        element:<News />
    }
])
export default router